﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebDataControls
{
    public interface IDataControl
    {
        /// <summary>
        /// 对象和控件对应的属性
        /// </summary>
        string FeildName { get; set; }

        /// <summary>
        /// 对象标示
        /// </summary>
        string TableName { get; set; }

        /// <summary>
        /// 获取控件的的值给对象赋值
        /// </summary>
        /// <param name="model"></param>
        void GetDataValue(ref object model);

        /// <summary>
        /// 从对象给控件赋值
        /// </summary>
        /// <param name="model"></param>
        void SetDataValue(object model);
    }
}
